package com.kongyz;

/**
 * @author kongyz
 * @date 2018/6/21 21:33
 * @Description: 静态内部类 线程安全
 */
public class Singleton5 {
    private static class Singleton5Holder{
        private static final Singleton5 INSTANCE = new Singleton5();
    }
    private Singleton5(){}
    public static final Singleton5 getInstance(){
        return Singleton5Holder.INSTANCE;
    }
}
